#include "RBTree.h"
#include <vector>

int main()
{
	int flag = 1;
	//while (flag)
	//{
		RBTree<int, int> tr;
		vector<int> a;
		srand((unsigned)time(nullptr));
		//srand((unsigned)time(nullptr));
		for (int i = 0; i < 10; i++)
		{
			a.push_back(rand() % 100);
		}

		for (auto e : a)
		{
			tr.Insert(make_pair(e, e));
		}

		//if (tr.size != 10)
		//{
		//	for (int i = 0; i < 10; i++)
		//	{
		//		cout << a[i] << " ";
		//	}
		//	cout << endl <<  "--------------" << endl;
		//	break;
		//}

		tr.InOrder();


		//if (!tr.IsBlance()) flag = 0;
		//else cout << "1" << endl;

		//Sleep(1000);
	//}
	//cout << "false" << endl;

	return 0;
}